#include "oblong.h"

oblong::oblong()
{
    cout <<"输入长方形的长:";
    cin >>len1;
    cout <<"输入长方形的宽:";
    cin >>len2;
}

float oblong::Perimeter()
{
    return 2*(len1+len2);
}
float oblong::area()
{
    return len1*len2;
}  